package com.manage.server.service;


import com.baomidou.mybatisplus.extension.service.IService;
import com.manage.dto.UserDTO;
import com.manage.dto.add.UserAddDTO;
import com.manage.dto.update.UserUpdateDTO;
import com.manage.entity.User;
import com.manage.result.PageResult;
import com.manage.vo.UserVO;

/**
* @author ddw
* @description 针对表【user(用户表)】的数据库操作Service
* @createDate 2025-04-13 13:37:08
*/
public interface UserService extends IService<User> {

    boolean save(UserAddDTO userAddDTO);

    boolean updateById(UserUpdateDTO userUpdateDTO);

    PageResult<UserVO> findUserByPage(UserDTO userDTO);

    User login(String username);

    void updateUserAvatar(Integer userId, String filename);
}
